x86/traps: consolidate PV RDMSR emulation paths
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Feb 2015 15:12:39 +0000 (16:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Feb 2015 15:12:39 +0000 (16:12 +0100)
commit27fa184b9c2faacb16dfd22773b5bfe9a35e740f
tree0326fd6b203df1da9a9e35bb60890f48159c9ff8
parentc4b7c3654bab290b4e1662224526bcfec24725b6
x86/traps: consolidate PV RDMSR emulation paths

Settle on just using one variable (val), and move the other into
WRMSR's local scope. Chain up further success paths to the
rdmsr_writeback label rather than open coding them.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/traps.c